#pragma once

struct CApprovedExtension
{
	CApprovedExtension(const CComBSTR& name, const CLSID& clsid);

	HRESULT Install() const;
	HRESULT Uninstall() const;

private:

	const CComBSTR m_name;
	const CComBSTR m_guid;

	static const LPCTSTR RegApprovedExtensions;

	static LRESULT OpenKey(CRegKey& key);
	static bool    IsWindowsNT() throw();
};
